package com.chen.cotroller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title:
 * @Description: to do
 * @Author: chenjiwei
 * @Date: 2020-10-05 4:50
 * @Version: 1.0.0
 */
@Controller
public class PageController {
    /**
     * @Author chenjiwei
     * @Description //TODO
     * @Date 2020/10/5 4:51
     * @Param
     * @return
     */
    @RequestMapping(value="/{page}" ,method= RequestMethod.GET)
    public String page(@PathVariable String page){
        return "/"+page;
    }
}
